Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRPtToAngles

You can use the QTVRPtToAngles function to get the pan and tilt angles of a point.

OSErr QTVRPtToAngles (
                     QTVRInstance qtvr,
                     Pointpt,
                     float*panAngle,
                     float*tiltAngle);
qtvr
An instance of a QuickTime VR movie.
pt
A point, in the local coordinates of the graphics world of the specified movie.
panAngle
On entry, a pointer to a floating-point value. On exit, that value contains the pan angle of the specified point.
tiltAngle
On entry, a pointer to a floating-point value. On exit, that value contains the tilt angle of the specified point.
function result
A result code.

DESCRIPTION

The QTVRPtToAngles function returns, in the floating-point values pointed to by the panAngle and tiltAngle parameters, the pan and tilt angles of the point specified by the pt parameter.

SPECIAL CONSIDERATIONS

QTVRPtToAngles is valid only for panoramic nodes.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |